package com.simple.ds.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.simple.common.entity.po.TradeEntity;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author yasud
 * @date 2021年09月17日 22:43
 * @description
 **/
public interface TradeService extends IService<TradeEntity> {
    List<TradeEntity> findByParam(Map<String, Object> param);

    TradeEntity findOneByParam(Map<String, Object> param);

    int findByRiskDoNotHour(String cardNo, String cardHolder, String channelStatus, Date date, Long channelId);

    TradeEntity findByPropertyOne_(String k, Object v);

    int findByRiskConfigError(String cardNo, String channelStatus, Date date, Long channelId);

    int findByRiskInvalidTransaction(String cardHolder, String channelStatus, Date date, Long channelId);

    int findByRiskRestrictedCard(String channelStatus, String cardNo, String cardHolder, Date date, Long channelId);

    int findByRiskCardHolderCount(String ipAddress, String cardNo, String cardHolder, String date, Long channelId);

    List<TradeEntity> findTradeByChannelOrderNo(String channelTradeNo);
}
